<?php
  //Gennesis Software Manual - Page 10
   
   
  $pdf->AddPage();
   
  //$pdf->Image('./Genesis/Gen-soft/Gsm-03.png',0,0,210 ,297);
  //add_raster($pdf);
   
  $margin = array
  (
    'tab_1' => 30,
    'tab_2' => 41,
    'tab_3' => 41
  );
   
  $pdf->SetDrawColor(0,0,0);
  $pdf->SetTextColor(0,0,0);
  $pdf->SetFont('Arial','',10);
  set_text_space(4.0);
   
  new_line(34);
   
  $pdf->Bookmark('4. I/O Area',2,current_line() - 10);
  $pdf->Text($margin['tab_1'],current_line(),'4. I/O AREA');
   
  $image_x = $margin['tab_2'] + 24;
  $image_y = 45;
  $text_x = $image_x - 24;
  $text_y = $image_y - 1;
   
  $pdf->Text($text_x,$text_y,'$ A 1 0 0 0 0');
  $pdf->Text($text_x,$text_y + 7,'$ A 1 0 0 0 2');
  $pdf->Text($text_x,$text_y + 23,'$ A 1 0 0 0 8');
  $pdf->Text($text_x,$text_y + 40,'$ A 1 0 0 0 E');
  $pdf->Text($text_x,$text_y + 56,'$ A 1 0 0 1 4');
  $pdf->Text($text_x,$text_y + 72,'$ A 1 0 0 1 A');
  $pdf->Text($text_x,$text_y + 89,'$ A 1 0 0 2 0');
  $pdf->Text($text_x,$text_y + 109,'$ A 1 F F F F');

  $text_x += 55;

  new_line($text_y+8);  
   
  $pdf->Text($text_x,current_line(),'Version No.');
  new_line();
  $pdf->Text($text_x,new_line(),'DATA (CTRL 1)');
  $pdf->Text($text_x,new_line(),'DATA (CTRL 2)');
  $pdf->Text($text_x,new_line(),'DATA (EXP)');
  new_line();
  $pdf->Text($text_x,new_line(),'CONTROL (1)');
  $pdf->Text($text_x,new_line(),'CONTROL (2)');
  $pdf->Text($text_x,new_line(),'CONTROL (E)');
  new_line();
  $pdf->Text($text_x,new_line(),'T x DATA');
  $pdf->Text($text_x,new_line(),'R x DATA  (1)');
  $pdf->Text($text_x,new_line(),'S - MODE');
  new_line();
  $pdf->Text($text_x,new_line(),'T x DATA');
  $pdf->Text($text_x,new_line(),'R x DATA  (2)');
  $pdf->Text($text_x,new_line(),'S - MODE');
  new_line();
  $pdf->Text($text_x,new_line(),'T x DATA');
  $pdf->Text($text_x,new_line(),'R x DATA  (E)');
  $pdf->Text($text_x,new_line(),'S - MODE');
  
  new_line(current_line() + 9);
  $pdf->CenterText($image_x ,current_line() ,'ACCESS',59);
  $pdf->CenterText($image_x ,current_line() + 4.4,'PROHIBITED',59);
  
  $pdf->Rect($image_x,$image_y,59,102);
  $pdf->Rect($image_x,$image_y + 9,59,16);
  $pdf->Rect($image_x,$image_y + 41,59,17);
  $pdf->Rect($image_x,$image_y + 74,59,17);
  
  $pdf->SetLineWidth(0.6);
  $pdf->Line($image_x + 28,$image_y + 0.4,$image_x + 28,$image_y + 90.6);
  $pdf->SetLineWidth(0.2);
   

   
   
  //==================================================[ 5. Control Area ]==================================================
   
  $image_x = $margin['tab_2'] + 24;
  $image_y = 184;
   
  $text_x = $margin['tab_2'];
   
  new_line(171);
  $pdf->Bookmark('5. Control Area',2,current_line() - 10);
  $pdf->Text($margin['tab_1'],current_line(),'5. Control Area');

  set_text_space(3.9);
    new_line();
    new_line();
    new_line();
      $pdf->Text($text_x,current_line(),'$ A 1 1 0 0 0');
    new_line();
      gen_table_start($image_x,30,0);
    new_line();
    new_line();
      $pdf->Text($text_x,current_line(),'$ A 1 1 0 0 2');
      $pdf->CenterText($image_x ,current_line() - $global_margin['text_space'] ,'MEMORY',30);
      $pdf->CenterText($image_x ,current_line() ,'MODE',30);
    new_line();
      gen_table_line(0);
    new_line();
    new_line();
      $pdf->Text($text_x,current_line(),'$ A 1 1 1 0 0');
      $pdf->CenterText($image_x ,current_line() - $global_margin['text_space'] ,'ACCESS',30);
      $pdf->CenterText($image_x ,current_line() ,'PROHIBITED',30);
    new_line();
      gen_table_line(0);
    new_line();
      $pdf->Text($text_x,current_line(),'$ A 1 1 1 0 2');
      $pdf->CenterText($image_x ,current_line(),'Z80 BUSREQ',30);
    new_line();
      gen_table_line(0);
    new_line();
    new_line();
      $pdf->Text($text_x,current_line(),'$ A 1 1 2 0 0');
      $pdf->CenterText($image_x ,current_line() - $global_margin['text_space'] ,'ACCESS',30);
      $pdf->CenterText($image_x ,current_line() ,'PROHIBITED',30);
    new_line();
      gen_table_line(0);
    new_line();
      $pdf->Text($text_x,current_line(),'$ A 1 1 2 0 2');
      $pdf->CenterText($image_x ,current_line() ,'Z80 RESET',30);
    new_line();
      gen_table_line(0);
    new_line();
    new_line();
      $pdf->CenterText($image_x ,current_line() - $global_margin['text_space'] ,'ACCESS',30);
      $pdf->CenterText($image_x ,current_line() ,'PROHIBITED',30);
    new_line();
      gen_table_end(0);
    new_line();
      $pdf->Text($text_x,current_line(),'$ A 1 F F F F');
  
  add_footer($pdf,'02/19/92','3');
?>
